/** 
 * Project Name:ecs-channel 
 * File Name:OrderListGetRequest.java 
 * Package Name:com.jala.ecschannel.isv.xhs.api.request 
 * Date:2018年5月14日下午2:36:56 
 * Copyright (c) 2018, liuyinsong@jala.com.cn All Rights Reserved. 
 * 
 */  
package com.grape.ciq.api.redbook.request;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import com.grape.ciq.api.redbook.ApiRuleException;
import com.grape.ciq.api.redbook.base.XHSRequest;
import com.grape.ciq.api.redbook.model.OrderGet;
import com.grape.ciq.api.redbook.response.OrderGetResponse;

/** 
 * ClassName: OrderListGetRequest <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * date: 2018年5月14日 下午2:36:56 <br/> 
 * @author liuyinsong
 */
@JsonIgnoreProperties(ignoreUnknown=true) 
public class OrderGetRequest extends XHSRequest<OrderGetResponse> {

	private static final long serialVersionUID = 8433120831429671001L;

	//URL:/ark/open_api/v0/packages/{package_id}
	@Override
	public void check() throws ApiRuleException {
	}

	@Override
	public String getMethodUrl() {
		return "/ark/open_api/v0/packages/";
	}
	
	@Override
	public String getMethod() {
		return "GET";
	}

	@Override
	public Map<String, Object> getParams() {
//		Map<String, Object> map = new HashMap<String, Object>();
//		map.put("package_id", orderGet.getPackage_id());
		return null;
	}
	
	@Override
	public String getUrlParams() {
		return orderGet.getPackage_id();
	}

	private OrderGet orderGet;

	public OrderGet getOrderGet() {
		return orderGet;
	}

	public void setOrderGet(OrderGet orderGet) {
		this.orderGet = orderGet;
	}

}
